<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<html>
<head>
<title>Cadastro de Perfil</title>
</head>

<link href="../css/estilo.css" rel="stylesheet" type="text/css">

<body>

<f:view>
<%@ include file="Menu.jsp" %>
<rich:spacer height="20" />
<rich:panel header="Cadastro de Perfil" headerClass="titulo">
	<h:form>
		<rich:spacer height="20" />
		<rich:messages layout="table" infoLabelClass="messageInfo" errorLabelClass="messageError">
			<f:facet name="infoMarker">
				<h:graphicImage value="../imagens/sucesso.gif" />
			</f:facet>
			<f:facet name="errorMarker">
				<h:graphicImage value="../imagens/erro.gif" />
			</f:facet>
		</rich:messages>
		<rich:spacer height="30" />
		<h:panelGrid columns="3">
			<h:outputText value="Nome:  "/>
			<h:inputText id="Nome" value="#{perfilBean.perfil.nm_perfil}" size="30" required="true" />
			<h:message for="Nome" style="color: darkred"/>
		</h:panelGrid>
		<rich:spacer height="30" />
		<h:commandButton value="Salvar" action="#{perfilBean.salvar }" />
		<rich:spacer width="5" />
		<h:commandButton value="Cancelar" action="cancelaPerfil" immediate="true" />
	</h:form>
</rich:panel>
</f:view>
</body>
</html> 